package com.itheima.day10.inputzijie;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class OnetoAll {
    public static void main(String[] args) throws IOException {
        File  file = new File("D:\\javajc_ws\\javaEE\\src\\com\\itheima\\day10\\inputzijie\\aikun");
        FileInputStream fis = new FileInputStream(file);
        //2.读取全部字节数据，使用readAllBytes()方法
        byte[]  x = fis.readAllBytes() ;
            System.out.println(new String(x));

        //3.关闭输入流,释放资源
        fis.close();
        System.out.println("文件读取完毕");
        System.out.println("===========================");
    }
}
